import request from '@/utils/request'

export default {

  // 根据课程id来获取评论分页信息
  getPageList(page, limit, courseId) {
    return request({
      url: `/eduservice/comment/${courseId}/${page}/${limit}`,
      method: 'get'
    })
  },
  // 添加评论
  addComment(comment) {
    return request({
      url: `/eduservice/comment/save`,
      method: 'post',
      data: comment
    })
  }
}